﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011D9 RID: 4569
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SpBarInfo : IMessage<SpBarInfo>, IMessage, IEquatable<SpBarInfo>, IDeepCloneable<SpBarInfo>, IBufferMessage
	{
		// Token: 0x170039D6 RID: 14806
		// (get) Token: 0x0600CC97 RID: 52375 RVA: 0x00227358 File Offset: 0x00225558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SpBarInfo> Parser
		{
			get
			{
				return SpBarInfo._parser;
			}
		}

		// Token: 0x170039D7 RID: 14807
		// (get) Token: 0x0600CC98 RID: 52376 RVA: 0x0022735F File Offset: 0x0022555F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SpBarInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170039D8 RID: 14808
		// (get) Token: 0x0600CC99 RID: 52377 RVA: 0x00227371 File Offset: 0x00225571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SpBarInfo.Descriptor;
			}
		}

		// Token: 0x0600CC9A RID: 52378 RVA: 0x00227378 File Offset: 0x00225578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo()
		{
		}

		// Token: 0x0600CC9B RID: 52379 RVA: 0x00227380 File Offset: 0x00225580
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo(SpBarInfo other) : this()
		{
			this.curSp_ = other.curSp_;
			this.maxSp_ = other.maxSp_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CC9C RID: 52380 RVA: 0x002273B1 File Offset: 0x002255B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo Clone()
		{
			return new SpBarInfo(this);
		}

		// Token: 0x170039D9 RID: 14809
		// (get) Token: 0x0600CC9D RID: 52381 RVA: 0x002273B9 File Offset: 0x002255B9
		// (set) Token: 0x0600CC9E RID: 52382 RVA: 0x002273C1 File Offset: 0x002255C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurSp
		{
			get
			{
				return this.curSp_;
			}
			set
			{
				this.curSp_ = value;
			}
		}

		// Token: 0x170039DA RID: 14810
		// (get) Token: 0x0600CC9F RID: 52383 RVA: 0x002273CA File Offset: 0x002255CA
		// (set) Token: 0x0600CCA0 RID: 52384 RVA: 0x002273D2 File Offset: 0x002255D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxSp
		{
			get
			{
				return this.maxSp_;
			}
			set
			{
				this.maxSp_ = value;
			}
		}

		// Token: 0x0600CCA1 RID: 52385 RVA: 0x002273DB File Offset: 0x002255DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SpBarInfo);
		}

		// Token: 0x0600CCA2 RID: 52386 RVA: 0x002273E9 File Offset: 0x002255E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SpBarInfo other)
		{
			return other != null && (other == this || (this.CurSp == other.CurSp && this.MaxSp == other.MaxSp && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CCA3 RID: 52387 RVA: 0x00227428 File Offset: 0x00225628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurSp != 0U)
			{
				num ^= this.CurSp.GetHashCode();
			}
			if (this.MaxSp != 0U)
			{
				num ^= this.MaxSp.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CCA4 RID: 52388 RVA: 0x00227480 File Offset: 0x00225680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CCA5 RID: 52389 RVA: 0x00227488 File Offset: 0x00225688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CCA6 RID: 52390 RVA: 0x00227494 File Offset: 0x00225694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurSp != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.CurSp);
			}
			if (this.MaxSp != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.MaxSp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CCA7 RID: 52391 RVA: 0x002274EC File Offset: 0x002256EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurSp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurSp);
			}
			if (this.MaxSp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxSp);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CCA8 RID: 52392 RVA: 0x00227544 File Offset: 0x00225744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SpBarInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurSp != 0U)
			{
				this.CurSp = other.CurSp;
			}
			if (other.MaxSp != 0U)
			{
				this.MaxSp = other.MaxSp;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CCA9 RID: 52393 RVA: 0x00227594 File Offset: 0x00225794
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CCAA RID: 52394 RVA: 0x002275A0 File Offset: 0x002257A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MaxSp = input.ReadUInt32();
					}
				}
				else
				{
					this.CurSp = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400521B RID: 21019
		private static readonly MessageParser<SpBarInfo> _parser = new MessageParser<SpBarInfo>(() => new SpBarInfo());

		// Token: 0x0400521C RID: 21020
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400521D RID: 21021
		public const int CurSpFieldNumber = 1;

		// Token: 0x0400521E RID: 21022
		private uint curSp_;

		// Token: 0x0400521F RID: 21023
		public const int MaxSpFieldNumber = 2;

		// Token: 0x04005220 RID: 21024
		private uint maxSp_;
	}
}
